getParcelableArrayExtra
open fun getParcelableArrayExtra(@NonNull in: Intent, @Nullable name: String, @NonNull clazz: Class<out Parcelable>): Array<Parcelable>(source)
Retrieve extended data from the intent.
Compatibility behavior:
- SDK 34 and later, this method matches platform behavior.
- SDK 33 and below, this method will not check the array elements' types.
Return
the value of an item previously added with putExtra(), or null if no Parcelable[] value was found.
Parameters
in
The intent to retrieve from.
name
The name of the desired item.
clazz
The type of the items inside the array. This is only verified when unparceling.